#include <iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    int x, a;
    int y, b;
    cin >> x >> a;
    cin >> y >> b;

    printf("%.2f\n", (float)(a*x - y*b)/(a-b));

    return 0;
}
